local Class = require('lua.lang.Class')

--- @class UpvalueDescriptor : Class
--- @field variableName LuaString
--- @field isInStack boolean
--- @field index number
local UpvalueDescriptor = Class {}

--- @constructor
--- @param variableName LuaString
--- @param isInStack boolean
--- @param index number
--- @return UpvalueDescriptor
function UpvalueDescriptor:new(variableName, isInStack, index)
	--- @type UpvalueDescriptor
	local o = {}
	o.variableName = variableName
	o.isInStack = isInStack
	o.index = index
	return setmetatable(o, UpvalueDescriptor)
end

return UpvalueDescriptor